$OpenBSD: patch-src_CMakeLists_txt,v 1.1 2016/08/13 19:22:05 jasper Exp $

Enforce library versioning.

--- src/CMakeLists.txt.orig	Mon Jan 11 16:59:38 2016
+++ src/CMakeLists.txt	Thu Aug 11 22:42:45 2016
@@ -268,8 +268,8 @@ if (BUILD_LIBRARY)
   set_target_properties(libledger PROPERTIES
     PREFIX ""
     INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}"
-    VERSION ${Ledger_VERSION_MAJOR}
-    SOVERSION ${Ledger_VERSION_MAJOR})
+    VERSION ${LIBledger_MAJOR}.${LIBledger_MINOR}
+    SOVERSION ${LIBledger_MAJOR}.${LIBledger_MINOR})
 
   add_executable(ledger main.cc global.cc)
   target_link_libraries(ledger libledger)
